package com.atguigu.gulimail.search.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
@Data
public class SearchResult {
    //查询到的所有商品信息
    private List<SkuEsModel> products;
    /*
    * 以下是分页信息
    * */
    private Integer pageNum;
    private Long total;
    private Integer totalPages;
    private List<Integer> pageNavs;

    private List<BrandVo> brands;
    private List<AttrVo> attrs;
    private List<CatalogVo> catalogs;

    //=======以上是返回给页面的所有信息==========

    //面包屑导航数据
    private List<NavVo> navs = new ArrayList<>();
    private List<Long> attrIds = new ArrayList<>();

    @Data
    public static class NavVo{
        String navValue;
        String Link;
        String navName;
        }


    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;

    }
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class AttrVo{
        private Long AttrId;
        private String AttrName;
        private List<String> AttrValue;
    }
}
